import request from '@/utils/request'

// 查询维修明细列表
export function listWeixiumx(query) {
  return request({
    url: '/carrepair/weixiumx/list',
    method: 'get',
    params: query
  })
}
// 查询维修明细列表
export function listWeixiumxNoPage(query) {
  return request({
    url: '/carrepair/weixiumx/listNoPage',
    method: 'get',
    params: query
  })
}

// 查询维修明细详细
export function getWeixiumx(id) {
  return request({
    url: '/carrepair/weixiumx/' + id,
    method: 'get'
  })
}

// 新增维修明细
export function addWeixiumx(data) {
  return request({
    url: '/carrepair/weixiumx',
    method: 'post',
    data: data
  })
}

// 修改维修明细
export function updateWeixiumx(data) {
  return request({
    url: '/carrepair/weixiumx',
    method: 'put',
    data: data
  })
}

// 删除维修明细
export function delWeixiumx(id) {
  return request({
    url: '/carrepair/weixiumx/' + id,
    method: 'delete'
  })
}
